<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>旋转</title>
	</head>
	<body>
		<script>
			var sum=prompt("请输入一整数：");
			
			for(var i=sum.length;i>-1;i--){
				document.write(sum.charAt(i));
			}
			
		</script>
	</body>
</html>
